-------------------------------------------------------------------------------
--Magic Cube
mobs:register_mob(
	"mobs_dungeon:magic_cube", 
	{
		type="monster",
		passive=false,
		attack_type="dogfight",
		pathfinding=true,
		reach=2,
		damage=3,
		hp_min=20,
		hp_max=30,
		armor=80,
		collisionbox={-0.25, -0.25, -0.25, 0.25, 0.25, 0.25},
		visual_size={x=0.5,y=0.5,z=0.5},
		visual="cube",
		textures={
			"mobs_dungeon_magic_cube_top.png",
			"mobs_dungeon_magic_cube_bottom.png",
			"mobs_dungeon_magic_cube_right.png",
			"mobs_dungeon_magic_cube_left.png",
			"mobs_dungeon_magic_cube_front.png",
			"mobs_dungeon_magic_cube_back.png",
		},
		makes_footstep_sound=true,
		sounds={
			attack="mobs_dungeon_rubiks_attack",
			death="mobs_dungeon_rubiks_death",
			random="mobs_dungeon_rubiks_random",
		},
		walk_velocity=1,
		run_velocity=2,
		jump=true,
		jump_height=1,
		view_range=10,
		drops={},
		water_damage=0,
		lava_damage=1,
		light_damage=0,
	}
)

mobs:spawn(
	{
		name="mobs_dungeon:magic_cube",
		nodes={"group:wood"},
		chance=6000,
		active_object_count=2,
	}
)

mobs:register_egg(
	"mobs_dungeon:magic_cube", "Magic Cube", 
	"mobs_dungeon_magic_cube_front.png", 1
)

